#source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
inhibit_all_warnings!

def cocoapods
  use_frameworks!
  # Swift
  pod 'SnapKit'
  pod 'Moya'
  pod 'HandyJSON'
  pod 'Toast-Swift'
  pod 'Kingfisher'
  pod 'DNSPageView'
  pod 'MJRefresh'
  pod 'JPush'
  pod 'IQKeyboardManagerSwift'
  pod 'SwiftGen', '~> 6.4.0'
  pod 'EmptyDataSet-Swift'
  
  # IM
  pod 'Starscream'

  # Objective-C
  pod 'YYText', '1.0.7'
  pod 'AFNetworking', '~> 4.0'
  pod 'Masonry'
end

target 'SmartEyeForDoctor' do
  cocoapods
end

target 'SmartEyeForDoctor-dev' do
  cocoapods
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = 'YES'
            config.build_settings['SWIFT_VERSION'] = '5.0'
        end
    end
end
